<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/13
 * Time: 14:11
 */

namespace data\model;
use traits\model\SoftDelete;

class User extends BaseModel
{
    use SoftDelete;
    protected  $autoWriteTimestamp = true;

    public function setPasswordAttr($val){
        return md5($val);
    }
}